package com.itheima.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "account")
public class Account {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String name;

    @Column(name = "money")
    private double money;

}
